#include <QtGui/QApplication>
#include <QTextCodec>

#include "mainw.h"

int main(int argc, char *argv[])
{

    QApplication a(argc, argv);
        #ifdef Q_WS_WIN
    QTextCodec *codec = QTextCodec::codecForName("cp1251");
#else
    QTextCodec *codec = QTextCodec::codecForName("UTF-8");
#endif

    QTextCodec::setCodecForTr(codec);
    QTextCodec::setCodecForCStrings(codec);
    QTextCodec::setCodecForLocale(codec);

    MainW w;
    w.show();
    return a.exec();
}
